const querystring=require('querystring')
var str='http://www.codeboy.com:9999/products.html?kw=d戴尔';
var obj=new URL(str);
var str2=obj.search.slice(1);
console.log(str2);
var obj2=querystring.parse(str2);
console.log(obj2);